package com.gdut.simple.common;

import android.app.ProgressDialog;
import android.content.Context;

public class ProgressUtils {

    private static ProgressDialog mProgressDialog;

    public static void show(Context context, String message) {
        mProgressDialog = new ProgressDialog(context);
        mProgressDialog.setMessage(message);
        mProgressDialog.show();
    }

    public static void hide() {
        if (mProgressDialog != null && mProgressDialog.isShowing()) {
            mProgressDialog.dismiss();
        }
    }

}
